package org.lex.ftplist.util;

import java.io.File;
import java.util.Date;

public class Ids {
	public static synchronized File generateUniqueFileName(File directory, String prefix, String suffix, Date time) {
		File file = null;
		do {
			file = new File(directory, prefix + "_" + time.getTime() + suffix);
		} while (file.exists());
		return file;
	}
}
